home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
A.C.E. 3
/
ACE CD 3.iso
/
files
/
utils
/
aplay200.lha
/
APlayer
/
Files
/
ARexx.lha
/
ScanSongs.aplay
< prev
next >
Wrap
Text File
|
1995-02-12
|
3KB
|
86 lines
/* Skip & delete module. Useful when selecting modules to copy from a */
/* friend. */
ADDRESS APlayer
OPTIONS RESULTS
SIGNAL ON HALT
GetMaxNames
numberofmodules=RESULT
counter=1
nl='0A'X
msg= "This Rexx-script will make an APML (module list) containing"|| nl
msg=msg ||"all the names and paths of the modules that you choose to keep," || nl
msg=msg ||"To see instructions, please press huh?."
Request "Okay!|Huh?" msg
IF RESULT=0 THEN DO
msg2= "1) Press EJECT twice to empty the player for old modules." || nl
msg2=msg2 ||""|| nl
msg2=msg2 ||"2) Press PLAY and select all files with the ALL button in the requester." || nl
msg2=msg2 ||""|| nl
msg2=msg2 ||"3) If you want to include modules in other directories as well, then" || nl
msg2=msg2 ||" click on one of these directories and push the ALL button."|| nl
msg2=msg2 ||""|| nl
msg2=msg2 ||"4) DO NOT sort the list in any way! It will ruin your selection."|| nl
msg2=msg2 ||""|| nl
msg2=msg2 ||"5) When finished with this script, save the modulelist (this is done"|| nl
msg2=msg2 ||" in the Module List Editor. You can then view or print the file you"|| nl
msg2=msg2 ||" saved and from this file it should be easy for you to select the" || nl
msg2=msg2 ||" modules you want."|| nl
Request "Aha!" msg2
END
IF numberofmodules= 0 THEN DO
Request "Okay" "You haven't got any songs in the list."
EXIT
END
LoopOn
Playmod 1
/* This following loop will play all modules in the list */
DO UNTIL counter=numberofmodules+1
GetName
modname=RESULT
msg="Do you want to store" || nl || modname || nl || "in your list?"
Request "Keep!|>>|Ignore" msg
IF RESULT=0 THEN DO
DelMod counter
PlayMod counter
numberofmodules=numberofmodules-1
END
ELSE
IF RESULT=1 THEN DO
counter=counter+1
PlayMod counter
END
ELSE DO
Forward
END
END
LoopOff
msg3= "Okay we are now finished selecting modules. Hopefully you haven't sorted" || nl
msg3=msg3 ||"the modulelist before you started (otherwise it will be a hell for you " || nl
msg3=msg3 ||"selecting the modules). Now save the modulelist. Then view it with a text" || nl
msg3=msg3 ||"viewer or print it out, and use your favourite Dir-util to copy the files."
Request "Ok" msg3
EXIT
/*
This is the 'emergencybrake' part of this script. If you can't stop this
sucker run the program HI which is located in the RXC drawer on your
sys: partition.
*/
HALT:
Say 'The ScanSongs.aplay script has been stopped. Hope you liked it.'
EXIT